<?php
$GLOBALS['__config__']=array();
class Config
{
	protected static $instances;
	static function factory($type='')
	{
		if(!self::$instances[$type])
		{
			$class=$type?"Config_{$type}":__CLASS__;
			return self::$instances[$type]=new $class();
		}
		return self::$instances[$type];
	}
}